<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<include file='Common:head'/>
<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>首页</li>
    <li>角色列表</li>
  </ul>
</div>
<div id="wrap"> <a href="{:U('Rbac/addNode')}" class="add-app">添加应用</a> <br>
  <foreach name="node" item="app">
    <div class="app">
      <p> 
      	<strong>({$app['id']})&nbsp;&nbsp;{$app['name']}</strong> 
       [<a href="{:U('Rbac/addNode',array('pid' => $app['id'],'level' => 2))}">添加控制器</a>]
       [<a href="{:U('Rbac/editNode',array('id' => $app['id'],'level' => 1))}">修改</a>]
       
      </p>
      <foreach name="app.child" item="action">
        <dl>
          <dt> 
          	<strong>({$action['id']})&nbsp;&nbsp;{$action.name}</strong> 
            [<a href="{:U('Rbac/addNode',array('pid' => $action['id'],'level' => 3))}">添加方法</a>]
            [<a href="{:U('Rbac/editNode',array('id' => $action['id'],'level' => 2))}">修改</a>]
          </dt>
          <foreach name="action.child" item="metod">
              <dd> 
                  <span style="font-weight:bold">({$metod['id']})&nbsp;&nbsp;{$metod['remark']}
                  [<a href="{:U('Rbac/editNode',array('id' => $metod['id'],'level' => 3))}">修改</a>] 
                  </span>
              </dd>
          </foreach>
        </dl>
      </foreach>
    </div>
  </foreach>
</div>
</body>
</html>
